#!/bin/sh
#
# $OpenBSD: adsuck.rc,v 1.4 2015/07/15 14:59:15 ajacoutot Exp $

daemon="${TRUEPREFIX}/sbin/adsuck"
daemon_flags="-c /var/adsuck -f /files/resolv.conf -r /files/regex /files/hosts.small"

. /etc/rc.d/rc.subr

rc_reload() {
	pkill -HUP -xf "${pexp}" && pkill -USR1 -xf "${pexp}"
}

rc_post() {
	pkill -xf "adsuck: \[resolv monitor\]"
}

rc_cmd $1
